Invert Binary Tree Java solution